import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;

public class FirstAction extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        // TODO: insert action logic here
        Messages.showMessageDialog(
                "Hello World!",
                "FirstAction",
                Messages.getInformationIcon()
        );
        Project project = e.getProject();
        System.out.println(project);
        System.out.println(project.getBasePath());
        System.out.println(project.getName());
        System.out.println(project.getProjectFile());
    }
}
